import request from 'axios';
//查询人气商品
export const popularizeGoodsApi = (page,size) => {
    return request({
        url: "http://47.102.218.109:8082//tb_popular/findByPage/" + page + '/' + size ,
        method: 'get'
})
};
//最新资讯
export const newsInformationApi = (page,size) => {
    return request({
        url: "http://47.102.218.109:8082//tb_news/findByPage/" + page + '/' + size ,
        method: 'get'
    })
};
//  添加资讯
export const addNewsApi = (row) => {
    return request({
        url: "http://47.102.218.109:8082//tb_news/addnews/" ,
        method: 'post',
        data: row
    })
};
// 删除资讯
export const deleteNewsApi = (row) => {
    return request({
        url: "http://47.102.218.109:8082//tb_news/deleteByIds/" ,
        method: 'post',
        data: row
    })
};
//  修改资讯
export const changeNewsApi = (row) => {
    return request({
        url: " http://47.102.218.109:8082//tb_news/updatenews/",
        method: 'post',
        data: row
    })
};
